import sys
from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import Qt

class MsgMain_CellTime(QtGui.QWidget):
	def __init__(self, *args, **kw):
		QtGui.QWidget.__init__(self, *args, **kw)
		self.setGeometry(0,0,90,25)

	def paintEvent(self, e):

		pen = QtGui.QPen( Qt.black, 1.5, 
			Qt.SolidLine, Qt.RoundCap, Qt.RoundJoin
		);

		font = QtGui.QFont("Times New Roman", 20);
		baseline = QtCore.QPointF(22, 20);

		pp = QtGui.QPainterPath()
		pp.addText(baseline, font, "18:20");

		qp = QtGui.QPainter (self);
		qp.setBrush(QtGui.QColor(Qt.transparent));
		qp.setPen(pen);
		qp.setRenderHint(QtGui.QPainter.Antialiasing, True)
		qp.setRenderHint(QtGui.QPainter.TextAntialiasing, True)
		qp.setRenderHint(
			QtGui.QPainter.HighQualityAntialiasing, True
		)
		qp.begin()
		qp.drawPath(pp);
		qp.end()

def main():
    
	app = QtGui.QApplication(sys.argv)
	ex = MsgMain_CellTime()
	ex.show()
	sys.exit(app.exec_())


if __name__ == '__main__':
	main()

